<%@page pageEncoding = "utf-8" contentType = "text/html;charset=utf-8"%>
<%@taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix = "fmt" uri = "http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setLocale value = "ru"/>
<fmt:setBundle basename = "servicedesk" scope = "request"/>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<script src = "js/default.js" type = "text/javascript"></script>

<script language="javascript">
function doFocus() {
  document.login.login.focus();
}
</script>

<title><fmt:message key = "Title.projectName"/></title>
</head>

<body onLoad="doFocus();">
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top: 150px; border: 5px solid #EEE;">
  <tr>
    <td align="left" valign="top">    
    <div align="center">    
    <div align="center" style="border-bottom: 1px dotted #CCCCCC; width: 70%; padding: 5px;">
      <fmt:message key = "interface.title.${sessionScope.alias}"/>  
    </div>
    </div>
    
    <form name="login" method="post" action="${sessionScope.alias}">
    
    <table border="0" cellspacing="0" cellpadding="6" align="center">
      
      <tr>
        <td align=right><span style="font-weight: bold;"><fmt:message key = "login.login"/>:</span></td>
        <td><input type="text" name="login" value='<c:out value = "${param.login}"/>'></td>
      </tr>
      
      <tr>
        <td align=right><span style="font-weight: bold;"><fmt:message key = "login.password"/>:</span></td>
        <td><input type="password" name="password"></td>
      </tr>     
      
      <tr>
        <td colspan="2" align="center">
          <input type="submit" value='<fmt:message key = "Command.login"/>' border="0" class="loginbutton">
          &nbsp;или&nbsp;
          <a href = "javascript:reset();"><fmt:message key = "Command.reset"/></a>
        </td>
      </tr>      
    </table>
    
    <input name = "_action" type = "hidden" value="login"> 
    </form>
    </td>
  </tr>
</table>

</body>
</html>